package esms.action;

import esms.action.helper.CloseBrowser;
import esms.action.helper.InitBrowser;
import esms.action.helper.WaitForNode;
import esms.action.impl.Login;
import esms.action.impl.LoginXiaonei;

public class ActionFactory {
	public static ActionInterface getLoginAction(String url,String email, String password){
		return new Login(url,email,password);  
	}
	
	public static ActionInterface getInitBrowserAction(String url, String browserType, String timeOut,String key){
		return new InitBrowser(url,browserType,timeOut,key); 
	}
	
	public static ActionInterface getCloseBrowserAction(){
		return new CloseBrowser();
	}
	
	//////////////////////////////////////////////////////////////////////////////////////
	//new case
	//////////////////////////////////////////////////////////////////////////////////////
	public static ActionInterface getLoginXiaoneiAction(String url,String email, String password){
		return new LoginXiaonei(url,email,password);    
	}
	 
	//common 
	public static ActionInterface getWaitForNodeAction(
			String nodePath, long timeoutInMilliseconds) {
		return new WaitForNode(nodePath, timeoutInMilliseconds);
	}
}
